//创建一个新的store实例
import {createStore} from 'vuex'
const store = createStore(
{
	state(){//data
		return{
			red:0,
		}
	},
	mutations:{//methods
		setRed(state,red){
			state.red=red
		},
	}
})

export default store;